<%@page import="fr.uniscol.model.BaseAnneeScolaire"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

ETAPE 1:

<form:form modelAttribute="tmpBaseACreer" rol="form" action="base.creation.etape1" method="post" cssStyle="form-horizontal">
	
	<div class="form-group">
		<label for="annee" class="col-sm-2 control-label">Année: </label>
		<div class="col-sm-1">
			<form:input path="annee" placeholder="Année" required="true" class="form-control" value="${tmpBaseACreer.annee}"/>
		</div>
	</div>
	
	<div class="col-sm-10 form-group">
		<div class="panel panel-default">
			<div class="panel-heading">
    			<h4 class="panel-title">Mode de création de la base</h3>
  			</div>
  			<div class="panel-body">
  				<ul class="list-group">
  					<li class="list-group-item">
  						<form:radiobutton id="mode1" path="modeCreation" value="<%=BaseAnneeScolaire.MODE_CREATION_SIECLE_STS %>"/><label for="mode1" class="control-label">Créer à partir de SIECLE/STS</label> 	
  					</li>
  					<li class="list-group-item">
  						<form:radiobutton id="mode2" path="modeCreation" value="<%=BaseAnneeScolaire.MODE_CREATION_TEXTE %>"/><label for="mode2" class="control-label">Créer à partir d'un fichier texte</label>
  					</li>
					<li class="list-group-item">
						<form:radiobutton id="mode0" path="modeCreation" value="<%=BaseAnneeScolaire.MODE_CREATION_BASE_VIDE %>"/><label for="mode0" class="control-label">Créer une base vide</label>
					</li>
				</ul>
			</div>
		</div>
	</div>
	
	<div class="col-sm-offset-8 col-sm-2 form-group">
		<form:button type="submit" class="btn btn-primary btn-md">CONTINUER</form:button>
	</div>
	
</form:form>